package single;

import java.lang.reflect.Constructor;

public class DemoTest {
    public static void main(String[] args) throws Exception {
        SinglePerson person1 = SinglePerson.getSinglePerson();
        SinglePerson person2 = SinglePerson.getSinglePerson();
        System.out.println(person1 == person2);
      /*  Constructor<SinglePerson> declaredConstructor = SinglePerson.class.getDeclaredConstructor();
        declaredConstructor.setAccessible(true);
        SinglePerson one = declaredConstructor.newInstance();
        SinglePerson two = declaredConstructor.newInstance();
        System.out.println(one == two);*/
    }

}
